home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
PASCAL
/
0514.ZIP
/
CRAYZ15.ARC
/
VOUT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1986-08-01
|
1KB
|
43 lines
{ Copyright (C) 1986 Adam Fritz, 133 Main St., Afton, NY 13730 }
procedure vOUT ( var fID ;
n : integer ) ;
{ Special purpose output routine for the matrix A }
{ which has leading dimension lda and is n by n. }
{ }
{ Adam Fritz, TURBO Pascal, 08/02/86 }
var
gID : vARRAY Absolute fID ;
is,ns : integer ;
ir : integer ;
ic,cn,cx,nc,mc : integer ;
iA : integer ;
A : array[1..5] of VECTOR ;
begin
if n > 1 then begin
ns := (n + 4) div 5 ;
for is := 1 to ns do begin
cn := (is-1)*5 + 1 ;
cx := cn + 4 ;
if cx > n then
cx := n ;
nc := cx - cn + 1 ;
for ic := cn to cx do begin
mc := (ic-1) mod 5 + 1 ;
iA := VectorRead(gID,n,1,ic,n,A[mc])
end ;
for ir := 1 to n do begin
for ic := 1 to nc do
write (A[ic][ir]:14, ' ') ;
writeln
end ;
writeln
end
end
end ;
{ Copyright (C) 1986 Adam Fritz, 133 Main St., Afton, NY 13730 }